<template>
  <div class="banner">
    <el-carousel height="458px" class="carousel">
      <el-carousel-item v-for="item in bannerList" :key="item.url">
        <NuxtImg :src="item.url" alt="logo" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup>
const bannerList = [{
  url: 'https://img-1254321318.file.myqcloud.com/img/202403/14/1710385218826.png',
},
{
  url: 'https://img-1254321318.file.myqcloud.com/img/202211/30/1669774808254.png',
},
{
  url: 'https://img-1254321318.file.myqcloud.com/img/202405/15/1715757827768.jpg',
}
]
</script>

<style lang="scss" scoped>
.banner {
  width: 100%;

  img {
    width: 100%;
    height: 100%;
    cursor: pointer;
    ;
  }

  .carousel {
    height: 100%;
  }

  .el-carousel__container {
    height: 100%;
  }

}

:deep(.el-carousel .el-carousel__indicators .el-carousel__button) {
  width: 56px;
  height: 4px;
  border-radius: 4px
}
</style>